export default {
	namespaced: true,
	state: {
		settingAccount: 'xiaolange', //账号
		selfIntroduction: '', //自我介绍
		nickname: '', //昵称
		gender: '保密', //性别
		sign: '', //个性签名
		themeSkincare:uni.getStorageSync('themeSkincare') || false,//主题换肤

	},
	mutations: {
		//修改账号
		updataAccount(state, newAccount) {
			state.settingAccount = newAccount
		},
		//修改自我介绍
		updataselfIntroduction(state, selfIntroduction) {
			state.selfIntroduction = selfIntroduction
		},
		//修改昵称
		updataNickname(state, nickname) {
			state.nickname = nickname
		},
		//修改性别
		updataGender(state, gender) {
			state.gender = gender
		},
		//修改个性签名
		updataSign(state, sign) {
			state.sign = sign
		},
		//修改个性签名
		updataThemeSkincare(state, themeSkincare) {
			state.themeSkincare = themeSkincare
			  uni.setStorageSync('themeSkincare', state.themeSkincare)
		},
	},
	getters: {

	},

}